package initiallize

import (
	"github.com/gin-gonic/gin"
	"shop_webs/goods_web/middlewares"
	"shop_webs/goods_web/router"
)

func Routers() *gin.Engine {
	Router := gin.Default()
	Router.Use(middlewares.Cors())
	ApiGroup := Router.Group("/v1")

	router.InitBrandRouter(ApiGroup)
	router.InitBannerRouter(ApiGroup)
	router.InitCategoryRouter(ApiGroup)
	router.InitGoodsRouter(ApiGroup)
	return Router
}
